<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
    String contextPath = request.getContextPath();
%>
<html>
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/resources/easyUI/themes/gray/easyuia.css">
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/resources/easyUI/icon.css">
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/resources/query-form.css">
    <script type="text/javascript" src="<%=contextPath%>/resources/js/jquery-1.8.0.min.js"></script> 
    <script type="text/javascript" src="<%=contextPath%>/resources/js/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="<%=contextPath%>/resources/easyUI/easyui-lang-zh_CN.js"></script>
    <script type='text/javascript' src='<%=contextPath%>/resources/js/views/area.js'></script>
</head>
<body>
<div id="content" style="height: 100%">
    <div class="time">
        <ul>
            <li>
				<label> 地区:
					<select class="easyui-combobox" name="areaid"  id="areaid" style="width: 100px;">
						<c:forEach var="areaOption" items="${areaList}">
								<option value="${areaOption.id}">${areaOption.name}</option>
							</c:forEach>
					</select>
				</label>
			
                <label> 地域名称或代码：<input class="easyui-textbox" type="text" name="searchname" id="searchname" /></label>
                <label> <a href="#" onclick="query(1,30);"class="easyui-linkbutton" iconCls="icon-search">查询</a> </label>
            </li>
        </ul>
    </div>
    <br>
    <div id="tablepanel" class="easyui-panel" style="width:100%;height:auto;padding:10px;" title="报表列表">
	<table id="tt" rownumbers="true" ></table>
	</div>
</div>

<div id="dialogAdd">
    <form id="fmAdd" name="formHead" style="text-align:right; padding-top:20px; height:autp; width: 100%" method="post"
          action="<%=contextPath%>/area/save.do">
          
        <input type="hidden" name="id" id="id"/>
        
        <table style="text-align:left;padding-left: 30px;width: 95%" id="ruleTable">
            <tr>
                <td style="width:120px;text-align:right">地域名称:</td>
                <td ><input class="easyui-textbox" style="margin-left:2px;width:200px;" type="text" name="name" id="name"/></td>
            </tr>
            <tr>
                <td style="width:120px;text-align:right"><label>父级地域:</label></td>
	            <td>
		            <select class="easyui-combobox" name="pid"  id="pid" style="width: 200px;">
						<c:forEach var="area" items="${areaList}">
							<option value="${area.id}">${area.name}</option>
						</c:forEach>
		            </select>
                </td>
            </tr>
            <tr>
                <td style="width:120px;text-align:right"><label>地域级别:</label></td>
	            <td>
		            <select class="easyui-combobox" name="level" id="level" style="width: 200px;">
		                <option value="2">省/直辖市</option>
		                <option value="3">地/市</option>
		                <option value="4">区/县</option>
		                <option value="5">乡镇</option>
		                <option value="6">其他</option>
		            </select>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align:center;">
					<a class="easyui-linkbutton" id="a_AddOK" onclick="">&nbsp;确&nbsp;定&nbsp;</a>
	        		<a class="easyui-linkbutton" id="a_AddCancle">&nbsp;取&nbsp;消&nbsp;</a>
				</td>
            </tr>
        </table>
    </form>
</div>

</body>
</html>